package
{
  public class CustomClient
  {
    
    public function CustomClient()
    {
    }
    
    public function onMetaData(info:Object):void { 
      trace("metadata: duration=" + info.duration + " width=" + info.width + " height=" + info.height + " framerate=" + info.framerate); 
    } 
    public function onCuePoint(info:Object):void { 
      trace("cuepoint: time=" + info.time + " name=" + info.name + " type=" + info.type); 
    } 
    
    /** Checking the available bandwidth. **/
    public function onBWCheck(... rest):Number {
      return 0;
    };
    
    
    /** Receiving the bandwidth check result. **/
//    public function onBWDone(... rest):void {
//      //if (rest.length > 0) {
//        //forward({bandwidth:rest[0]},'bandwidth');
//      //}
//    };
    public function onBWDone(... rest):Number {
      var p_bw:Number;
      if (rest.length > 0) p_bw = rest[0];
      // do something here
      // when the bandwidth check is complete
      trace("bandwidth = " + p_bw + " Kbps.");
      
      // dColumbus added this	
      return p_bw;
    }
    
    
    /** Captionate caption handler. **/
    public function onCaption(cps:String,spk:Number):void {
      //forward({captions:cps,speaker:spk},'caption');
    };
    
    
    /** Captionate metadata handler. **/
    public function onCaptionInfo(obj:Object):void {
      //forward(obj,'captioninfo');
    };
    
    
    /** CDN subscription handler. **/
    public function onFCSubscribe(obj:Object):void {
      //forward(obj,'fcsubscribe');
    };
  }
}